OCAML		= ocamlopt -w a
EXEC		= lmtw.bin
FLAGS		= -I +lablgtk2 -I +sdl -I +lablGL
LIBS		= bigarray.cmxa sdl.cmxa sdlttf.cmxa sdlloader.cmxa lablgtk.cmxa unix.cmxa
ML		= algoStar.ml mapPlan.ml interface.ml main.ml
CMX		= $(ML:.ml=.cmx)

all: $(EXEC)

.SUFFIXES: .ml .cmx

$(EXEC): $(CMX)
	$(OCAML) $(LIBS) $(FLAGS) $^ -o $(EXEC)

.ml.cmx:
	$(OCAML) $(FLAGS) -c $<

clean:
	rm *.cm? *.o

#END

